﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ResultMessage.cs" company="Microsoft">
//   Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
using System.Data;
using SLS.ExClassLib.Message;
namespace SLS.ExClassLib.WFActivities
{

    /// <summary>
    /// The card reader result.
    /// </summary>

    public class JobMessage : BaseEvent
    {
         
        #region===============Properties=================
        /// <summary>
        /// Gets or sets MachineStatus.
        /// </summary>
        public bool JobStatus { get; set; } 

        #endregion

        #region===============Properties=================
        public override string ToString()
        {
            if (Message == null)
                return "The Machine Status:" + this.JobStatus.ToString() 
               + " with the Event :" + this.Event.ToString()
               +" and no message: ";
            return "The Machine Status:" + this.JobStatus.ToString() 
               + " with the Event :" + this.Event.ToString()
               + " and Message: " + Message.ToString();
             
        }
        #endregion
    }
}